<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui">
    <h:head>
        <title>WebOficina</title>
    </h:head>
    <h:body>
        <h:form>
            <p:dialog header="Autenticação de Usuário" visible="true" closable="false" draggable="false" resizable="false" width="700"> 
                <p:panel>
                    <p:messages id="messages" showDetail="false" autoUpdate="true"/>

                    <h:panelGrid columns="4" cellpadding="5">  
                        <h:outputLabel for="name" value="Usuário:" style="font-weight:bold"/>  

                        <p:inputText id="usuario" value="#{logincontroller.lbean.user}" />

                        <h:outputLabel for="name" value="Senha:" style="font-weight:bold"/>  

                        <h:inputSecret id="password" value="#{logincontroller.lbean.pass}" required="true" label="password"/>

                        <p:commandButton value="Logar" actionListener="#{logincontroller.login}" ajax="false" update="messages"/>
                    </h:panelGrid>  
                </p:panel>
            </p:dialog>
        </h:form> 
    </h:body>
</html>